package cn.zxh.improvement.common.core.pipeline.context;

import cn.zxh.improvement.common.core.pipeline.PipelineFilterEnum;
import cn.zxh.improvement.common.core.pipeline.selector.FilterSelector;

/**
 * 事件上下文
 *
 * @author zxh
 * @since 2023-6-7 16:12:23
 */
public abstract class AbstractEventContext implements EventContext {

    private final PipelineFilterEnum<?> pipelineFilterEnum;
    private final FilterSelector selector;

    public AbstractEventContext(PipelineFilterEnum<?> pipelineFilterEnum, FilterSelector selector) {
        this.pipelineFilterEnum = pipelineFilterEnum;
        this.selector = selector;
    }

    @Override
    public PipelineFilterEnum<?> getPipelineFilterEnum() {
        return pipelineFilterEnum;
    }

    @Override
    public FilterSelector getFilterSelector() {
        return selector;
    }
}
